/**
 * 上午9:17:49
 */
package com.hsnn.medstgmini.base.std.model;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

/**
 * @author YXC
 *
 */
@Entity
@Table(name="std_drugcatalog")
public class StdDrugcatalog implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 317784639389671986L;

	@Id
	@Column(name = "drugcatalog_id", unique = true)
	private String drugcatalogId;

	@Column(name = "drugcatalog_code")
	private String drugcatalogCode;
	
	@Column(name = "drugcatalog_name")
	private String drugcatalogName;
	
	@Column(name = "start_time")
	private Date startTime;
	
	@Column(name = "end_time")
	private Date endTime;
	

	@Column(name = "status")
	private short status;

	@Column(name = "attribute")
	private short attribute;

	@Column(name = "upd_datetime")
	private Date updDatetime;

	@Column(name = "upd_user")
	private String updUser;
	
	@Transient
	private String startTimeStr;
	@Transient
	private String endTimeStr;
	@Transient
	private String attributeStr;
	
	public String getDrugcatalogId() {
		return drugcatalogId;
	}

	public void setDrugcatalogId(String drugcatalogId) {
		this.drugcatalogId = drugcatalogId;
	}

	public String getDrugcatalogCode() {
		return drugcatalogCode;
	}

	public void setDrugcatalogCode(String drugcatalogCode) {
		this.drugcatalogCode = drugcatalogCode;
	}

	public String getDrugcatalogName() {
		return drugcatalogName;
	}

	public void setDrugcatalogName(String drugcatalogName) {
		this.drugcatalogName = drugcatalogName;
	}

	public Date getStartTime() {
		return startTime;
	}

	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}

	public String getStartTimeStr() {
		return startTimeStr;
	}

	public void setStartTimeStr(String startTimeStr) {
		this.startTimeStr = startTimeStr;
	}

	public String getEndTimeStr() {
		return endTimeStr;
	}

	public void setEndTimeStr(String endTimeStr) {
		this.endTimeStr = endTimeStr;
	}

	public String getAttributeStr() {
		return attributeStr;
	}

	public void setAttributeStr(String attributeStr) {
		this.attributeStr = attributeStr;
	}

	public Date getEndTime() {
		return endTime;
	}

	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}

	public short getStatus() {
		return status;
	}

	public void setStatus(short status) {
		this.status = status;
	}

	public short getAttribute() {
		return attribute;
	}

	public void setAttribute(short attribute) {
		this.attribute = attribute;
	}

	public Date getUpdDatetime() {
		return updDatetime;
	}

	public void setUpdDatetime(Date updDatetime) {
		this.updDatetime = updDatetime;
	}

	public String getUpdUser() {
		return updUser;
	}

	public void setUpdUser(String updUser) {
		this.updUser = updUser;
	}

	@Override
	public String toString() {
		return "StdDrugcatalog [drugcatalogId=" + drugcatalogId
				+ ", drugcatalogCode=" + drugcatalogCode + ", drugcatalogName="
				+ drugcatalogName + ", startTime=" + startTime + ", endTime="
				+ endTime + ", status=" + status + ", attribute=" + attribute
				+ ", updDatetime=" + updDatetime + ", updUser=" + updUser
				+ ", startTimeStr=" + startTimeStr + ", endTimeStr="
				+ endTimeStr + ", attributeStr=" + attributeStr + "]";
	}
	
	
}
